<!---
@自动生成 BY Kupe框架 www.kupebank.com
#date : 2017-11-02 11:01:27
#path : app/template/admin/user.editcategory.html
--->
<form class="layui-form" action="" style="padding:10px;width:450px;">
  <div class="layui-form-item">
    <label class="layui-form-label">分组标识</label>
    <div class="layui-input-block">
      <input type="text" name="tag" required  lay-verify="required" placeholder="请输入名称" autocomplete="off" class="layui-input" value="{$rs.tag}">
    </div>
  </div>
  
  <div class="layui-form-item">
    <label class="layui-form-label">名称</label>
    <div class="layui-input-block">
      <input type="text" name="name" required  lay-verify="required" placeholder="请输入名称" autocomplete="off" class="layui-input" value="{$rs.name}">
    </div>
  </div>

  <div class="layui-form-item layui-form-text">
    <label class="layui-form-label">简介</label>
    <div class="layui-input-block">
      <textarea name="desc" placeholder="请输入简介" class="layui-textarea">{$rs.desc}</textarea>
    </div>
  </div>

  <div class="layui-form-item">
    <label class="layui-form-label">是否开启</label>
    <div class="layui-input-block">
      <input type="checkbox" name="status" value=1 {if $rs.status}checked{/if} lay-skin="switch">
    </div>
  </div>

  <div class="layui-form-item">
    <label class="layui-form-label">     排序 </label>
    <div class="layui-input-block">
      <input type="text" name="porder" value="{$rs.porder}" required  lay-verify="number" placeholder="请输入作者" autocomplete="off" class="layui-input">
    </div>
  </div>



  <div class="layui-form-item">
    <div class="layui-input-block">
      <button class="layui-btn" lay-submit lay-filter="formDemo">立即提交</button>
      <button type="reset" class="layui-btn layui-btn-primary">重置</button>
    </div>
  </div>
  <input type="hidden" name="id" value="{$rs.id}">
</form>
 
<script>
formSubmit('{_url m="doeditcategory"}','formDemo','reload');
</script>